package com.topnav.mc.task;

import com.js.lib.result.Result;
import com.js.lib.task.Task;
import com.topnav.mc.admin.entity.Device;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.AsyncResult;

import java.util.concurrent.Future;
/**
 * @Author: kenny
 * @Date: 2023/10/26 15:52
 */
public abstract class AbstractTask<T> implements Task<T> {
    @Override
    @Async
    public Future<String> execute(T t) throws Exception {
        return new AsyncResult<String>("默认任务");
    }

}
